# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=tree-sitter-rust
pkgver=0.23.0
pkgrel=0
pkgdesc="Rust grammar for tree-sitter"
url="https://github.com/tree-sitter/tree-sitter-rust"
arch="all"
license="MIT"
makedepends="tree-sitter-dev"
install_if="tree-sitter-grammars"
source="https://github.com/tree-sitter/tree-sitter-rust/archive/v$pkgver/tree-sitter-rust-$pkgver.tar.gz"
options="!check"  # no tests for shared lib

build() {
	abuild-tree-sitter build
}
package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
}

sha512sums="
2f683ea8c4c194c7dbdd1a1e78343ae908175d403c2cf2fd4d6ab318f7383a8fcb5760f6ae55ed7ed2123a93f4cf93912c759f2d39eb7d75c3e54cd89390c91a  tree-sitter-rust-0.23.0.tar.gz
"
